﻿namespace Community.CsharpSqlite.Entity
{
    /*
** This structure is passed around through all the sanity checking routines
** in order to keep track of some global state information.
*/
    //typedef struct IntegrityCk IntegrityCk;
    public class IntegrityCk
    {
        public int[] anRef; /* Number of times each page is referenced */
        public StrAccum errMsg = new StrAccum(100); /* Accumulate the error message text here */
        public int mxErr; /* Stop accumulating errors when this reaches zero */
        public int nErr; /* Number of messages written to zErrMsg so far */
        public uint nPage; /* Number of pages in the database */
        public BtShared pBt; /* The tree being checked out */
        public Pager pPager; /* The associated pager.  Also accessible by pBt.pPager */
        //public int mallocFailed;  /* A memory allocation error has occurred */
    };
}